import request from '@/utils/request'

// 查询部门管理列表
export function listDepartmentManage(query) {
  return request({
    url: '/system/t05/getDepartmentList',
    method: 'get',
    params: query
  })
}

// 查询部门管理详细
export function getDepartmentManage(f0501) {
  return request({
    url: '/departmentManage/departmentManage/' + f0501,
    method: 'get'
  })
}

// 新增部门管理
export function addDepartmentManage(data) {
  return request({
    url: '/system/t05',
    method: 'post',
    data: data
  })
}

// 修改部门管理
export function updateDepartmentManage(data) {
  return request({
    url: '/system/t05',
    method: 'put',
    data: data
  })
}

// 删除部门管理
export function delDepartmentManage(f0501) {
  return request({
    url: '/departmentManage/departmentManage/' + f0501,
    method: 'delete'
  })
}

// 负责人列表
export function listUser(query) {
  return request({
    url: '/adminaccount/T18/getUsersByDeptCode',
    method: 'get',
    params: query
  })
}
